// JavaScript Document Mootools edition
function initJNice() {
		//var safari = $.browser.safari; /* We need to check for safari to fix the input:text problem */
		$(document).addEvent('mousedown',checkExternalClick);
		/* each form */
		$$('input[type=submit]').each(ButtonAdd);
		/*
		this.each(function(){
			$('input:submit, input:reset, input:button', this).each(ButtonAdd);
			$('button').focus(function(){ $(this).addClass('jNiceFocus')}).blur(function(){ $(this).removeClass('jNiceFocus')});
			$('input:text:visible, input:password', this).each(TextAdd);
			//if (safari){$('.jNiceInputWrapper').each(function(){$(this).addClass('jNiceSafari').find('input').css('width', $(this).width()+11);});}
			$('input:checkbox', this).each(CheckAdd);
			$('input:radio', this).each(RadioAdd);
			$('select', this).each(function(index){ SelectAdd(this, index); });
			$(this).bind('reset',function(){var action = function(){ Reset(this); }; window.setTimeout(action, 10); });
		});			
		*/
	
}

function checkExternalClick() {
	
}
function ButtonAdd(item) {
	var value = item.get('value');
	
	
var value = $(this).attr('value');
		$(this).replaceWith('<button id="'+ this.id +'" name="'+ this.name +'" type="'+ this.type +'" class="'+ this.className +'" value="'+ value +'"><span><span>'+ value +'</span></span>');		
	
}